//this sequence is magic
function nthChandosNumber(n) {
    return parseInt(n.toString(2) + '0', 5)
}